package org.skydiveapp;

import org.skydiveapplibrary.R;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ExpandableListView;

public class BaseExpandableListFragment extends ExpandableListFragment
{
	@Override
	public boolean onChildClick(ExpandableListView parent, View v, int groupPosition, int childPosition, long id)
	{
		return onRigClick(parent, v, groupPosition, childPosition, id);
	}
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
	    		Bundle savedInstanceState)
	{	
	    // Inflate the layout for this fragment
	    View view = inflater.inflate(R.layout.expandable_list_view, container, false);
		
		return view;
	}
	
//	public void onStart()
//	{
//		super.onStart();
		
//		getExpandableListView().setOnChildClickListener(onChildClickListener);
//	}
	
    public boolean onRigClick(android.widget.ExpandableListView parent, View v, int groupPosition, int childPosition, long id)
    {
    	return true;
    }
}
